export const API_URLS = {
  // 认证模块

  LOGIN: '/login',
  LOGOUT: '/logout',
  PASSWORD_LOGIN: '/passwordLogin',
  REGISTER: '/register',
  REGISTER_CAPTCHA: '/register/captcha',
  VERIFY_EMAIL:'/verify/email',
  RESET_PASSWORD: '/reset-password',
  LOGIN_SMS: '/login-sms',
  LOGIN_QR: '/login-qr',

  // 用户模块
  CREATE_USER: '/create/user',
  UPDATE_USER:'/update/user/:id',
  REFRESH_TOKEN: '/refresh-token',
  GET_USER_LIST: '/user/list',
  GET_CURRENT_USER: '/get-current-user',
  GET_USER_DETAIL: '/get/user/:id',
  GET_USER_INFO: '/get/info',
  DELETE_USER: '/delete/user/:id',
  BATCH_DELETE_USERS: '/batch/delete/users',
  VERIFY_TOKEN: '/verify/token',
  GET_AUTHENTICATED_USER: '/get-authenticated-user',
  // 商品模块
  GET_PRODUCT_LIST:'/list',
  GET_PRODUCT_CATEGORY_LIST:'/category/list',
  GET_PRODUCT_DETAIL:'/detail/:id',
  GET_PRODUCT_SKU_LIST:'/detail/skus/:id',
  CREATE_PRODUCT_SKU:'/create/skus',  
  UPDATE_PRODUCT_SKU:'/update/skus/:id',
  DELETE_PRODUCT_SKU:'/delete/skus/:id',
  PRODUCT_CREATE:'/create',
  PUT_PRODUCT_UPDATE:'/update/:id',
  PRODUCT_DELETE:'/delete',
  BATCH_DELETE_PRODUCTS:'/batch/delete/products',
  GET_SPEC_TYPE_LIST:'/spec-types/list/:id',
  // 规格类型模块
  SPEC_TYPE_CREATE:'/spec-types/create',
  SPEC_TYPE_UPDATE:'/spec-types/update/:id',
  SPEC_TYPE_DELETE:'/spec-types/delete/:id',
  GET_SPEC_VALUE_LIST:'/spec-values?specTypeId=:id',
  SPEC_VALUE_CREATE:'/spec-values/create',
  SPEC_VALUE_UPDATE:'/spec-values/update/:id',
  SPEC_VALUE_DELETE:'/spec-values/delete/:id',
  // 文件管理模块
  GET_FILES_LIST: '/list',
  // 上传文件模块
  UPLOAD_FILE: '/file',
  UPLOAD_THUMBNAIL: '/thumbnail',
  UPLOAD_GALLERY: '/gallery',
  UPLOAD_SKU: '/sku',
  UPLOAD_VERIFY: '/verify/file',
  UPLOAD_CHUNK_INIT:'/chunk/init',
  UPLOAD_CHUNK:'/chunk/file',
  UPLOAD_MERGE:'/merge/file',
  UPLOAD_DELETE:'/delete/file/:id',
}